{extend name="common/base"/}
<!-- 主体 -->
{block name="body"}
<div class="layui-form p-4">
    <h3 class="pb-3">订单详情</h3>
    <table class="layui-table layui-table-form">
        <tr>
            <td class="layui-td-gray-2">用户信息</td>
            <td>{$detail.user_info}</td>
            <td class="layui-td-gray-2">设备IMEI</td>
            <td>{$detail.imei}</td>
            <td class="layui-td-gray-2">购酒量(ml)</td>
            <td>{$detail.wine_num}</td>
        </tr>
        <tr>
            <td class="layui-td-gray-2">订单号</td>
            <td>{$detail.order_no}</td>
            <td class="layui-td-gray-2">实付金额</td>
            <td>{$detail.amount}</td>
            <td class="layui-td-gray-2">设备地址</td>
            <td>{$detail.addr}</td>
        </tr>
        <tr>
            <td class="layui-td-gray-2">订单状态</td>
            <td>
                {eq name="$detail.status" value="1"}已支付{/eq}
                {eq name="$detail.status" value="2"}售后中{/eq}
                {eq name="$detail.status" value="3"}已处理{/eq}
            </td>
            <td class="layui-td-gray-2">支付方式</td>
            <td>
                {eq name="$detail.pay_type" value="1"}微信{/eq}
                {eq name="$detail.pay_type" value="2"}积分{/eq}
                {eq name="$detail.pay_type" value="3"}兑酒券{/eq}
            </td>
            <td class="layui-td-gray-2">下单时间</td>
            <td>{$detail.pay_time}</td>
        </tr>
        {if condition="$detail.status > 1"}
        <tr>
            <td class="layui-td-gray-2">售后状态</td>
            <td>
                {eq name="$detail.sh_status" value="1"}待审核{/eq}
                {eq name="$detail.sh_status" value="2"}已同意{/eq}
                {eq name="$detail.sh_status" value="3"}已拒绝{/eq}
                {eq name="$detail.sh_status" value="4"}已取消{/eq}
            </td>
            <td class="layui-td-gray-2">故障原因</td>
            <td>{$detail.sh_title}</td>
            <td class="layui-td-gray-2">故障描述</td>
            <td>{$detail.sh_content}</td>
        </tr>
        <tr>
            <td class="layui-td-gray-2">申诉时间</td>
            <td>{$detail.sh_time}</td>
        </tr>
        <tr>
            <td class="layui-td-gray-2">故障图片</td>
            <td colspan="5">
                {notempty name="detail.sh_img"}
                {volist name="detail.sh_img" id="vo"}
                <a href="{$vo}" target="_blank"><img style="width: 100px" src="{$vo}" alt=""></a>
                {/volist}
                {/notempty}
            </td>
        </tr>
        {/if}

    </table>
</div>
{/block}
<!-- /主体 -->